//
// Copyright (c) 2009-2011, chunquedong
//
// This file is part of ChunMap project
// Licensed under the GNU LESSER GENERAL PUBLIC LICENSE(Version >=3)
//
// History:
//   2011-05-05  Jed Young  Creation
//

using fan3dTouch
using gfx

**
** ZoomTool
**
@Js
class ZoomTool : Tool
{
  override Void actionEvent(MotionEvent e)
  {
    //mouseWheelMoved(e)
  }

  private Void mouseWheelMoved(MotionEvent e)
  {
    //x := view.x2World(e.pos.x.toFloat)
    //y := view.y2World(e.pos.y.toFloat)

    //if (e.delta == null || e.delta.y == 0) return
    //s := (e.delta.y < 0) ? 2f : 0.5f

    //cmd := ZoomCommand(map, s, x, y)
    //map.executeCommand(cmd)

    //e.consumed = true
    //map.renderMap
  }
}

